package com.example.smartcity.Mappers;

import com.example.smartcity.Entity.SSP;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SuiShouPaiMapper {
    @Insert("INSERT INTO ssp(content,title,imgnames,authorid) VALUES(#{content},#{title},#{names},#{authorid})")
    void SaveSSP(@Param("content") String content,@Param("title") String title,@Param("names") String imgnames,@Param("authorid")String uid);
    @Select("SELECT * FROM ssp;")
    List<SSP> GetAllSSP();

}
